package com.sanalkitaplik.usermanagement;

public class User {
	
	private String userName;
	private String password;
	
	public User() {
		this.userName = "";
		this.password = "";
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String getUserName() {
		return this.userName;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getPassword() {
		return password;
	}
	
	public boolean equals(User user) {
		if (user.getUserName() == null || user.getPassword() == null)
			return false;
		if (user.getUserName().equals(this.userName) && user.getPassword().equals(this.password))
			return true;
		else
			return false;
	}
}
